package com.xaaef.grpc.lib.consts;


import io.grpc.Metadata;

public interface GlobalConst {

    /**
     * rest 错误详情
     */
    String HEADER_ERROR_DETAILS = "Error-Details";

    /**
     * rest 错误详情
     */
    String BODY_ERROR = "error";

    /**
     * rest 错误详情
     */
    String BODY_MESSAGE = "message";

    // 租户ID string 格式
    Metadata.Key<String> TENANT_ID = Metadata.Key.of("tenantId", Metadata.ASCII_STRING_MARSHALLER);

}
